package com.xinyi.share.weixin.message.event;
/**
 * 
 * @description 扫描事件
 * @author wangchuan
 * @date 2014年7月5日下午12:10:51
 * @version 1.0
 */
public class ScanEventMessage extends EventMessage {
	/**
	 * 事件KEY值，是一个32位无符号整数，即创建二维码时的二维码scene_id 
	 */
	private String eventkey;
	/**
	 * 二维码的ticket，可用来换取二维码图片 
	 */
	private String ticket;
	
	public ScanEventMessage(){}
	
	public ScanEventMessage(String fromUserName, String toUserName,String eventkey,String ticket,long createTime){
		super(fromUserName, toUserName, Event.SCAN.toString(), createTime);
		this.eventkey = eventkey;
		this.ticket = ticket;
	}
	
	public String getEventkey() {
		return eventkey;
	}
	public void setEventkey(String eventkey) {
		this.eventkey = eventkey;
	}
	public String getTicket() {
		return ticket;
	}
	public void setTicket(String ticket) {
		this.ticket = ticket;
	}

	@Override
	public String toString() {
		return "ScanEventMessage [eventkey=" + eventkey + ", ticket=" + ticket + ", getCreateTime()=" + getCreateTime() + ", getEvent()=" + getEvent() + ", toString()=" + super.toString()
				+ ", getMsgType()=" + getMsgType() + ", getFromUserName()=" + getFromUserName() + ", getToUserName()=" + getToUserName() + "]";
	}
	
}
